<template>
	<view class="delivery-page">
		<!-- 导航栏 -->
		<free-nav-bar textContent="发货" isBackShow></free-nav-bar>
		<view class="delivery-wrapper">
			<view class="delivery__top">
				<view class="delivery__top--info flex">
					<view class="user__info flex">
						<text class="main-text-color name">张三</text>
						<text class="main-text-color phone">17422584521</text>
					</view>
					<view class="edit"><i class="sprite sprite-edit"></i></view>
				</view>
				<view class="delivery__top--address flex">
					<i class="sprite sprite-post"></i>
					<text class="address__text main-text-color font28">广东省深圳市南山区桃源街道平山村平山村110栋生活驿站便利店</text>
				</view>
			</view>
			<view class="delivery__product flex">
				<view class="delivery__product--img"></view>
				<view class="delivery__product--info">
					<view class="info-warpper">
						<text class="title main-text-color font28">广西田东金煌芒新品装</text>
						<text class="text__info">规格：大果5斤</text>
					</view>
					<view class="delivery__product--price flex">
						<text class="price"><span class="symbol">￥</span>75.9</text>
						<text class="num main-text-color font28">*1</text>
					</view>
				</view>
			</view>
			<view class="delivery__express">
				<view class="input-wrapper flex express">
					<view class="delivery__express--firm flex">
						<view class="label main-text-color font28">快递公司</view>
						<view class="select__content main-text-color font28">顺丰</view>
					</view>
					<view class="flex select__wrapper">
						<view class="select"><i class="sprite sprite-arrow-r"></i></view>
					</view>
				</view>
				<view class="input-wrapper flex">
					<view class="label main-text-color font28">快递单号</view>
					<input class="input main-text-color font28" type="text" placeholder="输入快递单号">
				</view>
				<view class="input-wrapper btns flex">
					<view class="btn main-bg-color font28 flex">确定</view>
				</view>
			</view>
		</view>
		<hqs-popup title="种植果类" v-model="showPopup">
		    <view>弹窗内容</view>
		</hqs-popup>
	</view>
</template>

<script>
	import $H from '@/common/free-lib/request.js';
	import freeNavBar from "@/components/free-ui/free-nav-bar.vue"
	export default {
		components: {
			freeNavBar
		},
		data() {
			return {
				showPopup: false,
				params: {
					name: '',
					type: null,
					address: '',
					mode: '',
					desc: '',
					full_name: '',
					phone: '',
					business_license: '',
					status: 0
				}
			}
		},
		created() {
			
		},
		methods: {
			handleFruits() {
				this.showPopup = true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.delivery-page {
		.delivery__top {
			padding: 30rpx;
			padding-bottom: 24rpx;
			background: #fff;
			
			.delivery__top--info {
				height: 42rpx;
				justify-content: space-between;
				align-items: center;
				padding-left: 34rpx;
				
				.name,.phone {
					font-size: 30rpx;
					font-weight: bold;
				}
				.phone {
					margin-left: 30rpx;
				}
			}
			.delivery__top--address {
				position: relative;
				padding-left: 34rpx;
				margin-top: 14rpx;
				.sprite {
					position: absolute;
					top: 4rpx;
					left: 0;
				}
				.address__text {
					line-height: 40rpx;
				}
			}
			.sprite {
				display: block;
			}
		}
		.delivery__product {
			margin-top: 16rpx;
			margin-bottom: 16rpx;
			background: #fff;
			padding: 20rpx 30rpx;
			
			.delivery__product--img {
				width: 180rpx;
				height: 180rpx;
				background: pink;
			}
			.delivery__product--info {
				position: relative;
				margin-left: 14rpx;
				flex: 1;
				
				.title {
					display: block;
					line-height: 40rpx;
				}
				
				.text__info {
					margin-top: 10rpx;
					font-size: 24rpx;
					line-height: 33rpx;
					color: #666666;
				}
				.delivery__product--price {
					position: absolute;
					bottom: 0;
					left: 0;
					height: 48rpx;
					width: 100%;
					align-items: center;
					justify-content: space-between;
					
					.price {
						font-size: 34rpx;
						font-weight: bold;
						color: #FD5052;
						
						.symbol {
							font-size: 24rpx;
							font-weight: normal;
						}
					}
				}
			}
		}
		.delivery__express {
			
			.input-wrapper {
				height: 88rpx;
				align-items: center;
				padding: 0 30rpx;
				background: #fff;
				
				&.express {
					align-items: center;
					justify-content: space-between;
					border-bottom: 1px solid #EBEBEB;
				}
				
				.label {
					margin-right: 56rpx;
				}
				.sprite {
					display: block;
				}
				
				&.btns {
					background: none;
					height: 74rpx;
					margin-top: 30rpx;
					padding: 0 30rpx;
					
					.btn {
						width: 100%;
						height: 100%;
						align-items: center;
						justify-content: center;
						background: #FD5052;
						color: #fff;
						border-radius: 200px;
					}
				}
			}
		}
	}
</style>
